
<%--
  Created by IntelliJ IDEA.
  User: 吟荷
  Date: 2023/1/31
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>档案明细页面</title>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/bootstrap.js" type="text/javascript"></script>
</head>
<body>
    <table border="1">
        <tr>
            <td>编号</td>
            <td>${profile.id}</td>
        </tr>
        <tr>
            <td>姓名</td>
            <td>${profile.name}</td>
        </tr>
        <tr>
            <td>生日</td>
            <td>${profile.birthday}</td>
        </tr>
        <tr>
            <td>性别</td>
            <td>${profile.gender}</td>
        </tr>
        <tr>
            <td>职业</td>
            <td>${profile.career}</td>
        </tr>
        <tr>
            <td>住所</td>
            <td>${profile.address}</td>
        </tr>
        <tr>
            <td>电话</td>
            <td>${profile.mobile}</td>
        </tr>
        <tr>
            <td colspan="2"><img src="${pageContext.request.contextPath}/imgServlet?picture=${profile.picture}" width="100px"></td>
        </tr>
    </table>
    <button type="button" id="btn">返回</button>

    <script type="text/javascript">
        $("#btn").click(function () {
            $(location).attr("href","profileservlet?method=listProfile&pageNum=1");
        });
    </script>
</body>
</html>
